<?php

namespace app\h5api\validate;

use think\Validate;

class Address extends Validate
{
	protected $scene = [
        'User' => ['code'],
	];

	protected $rule =   [
        'nick_name'  => 'max:25',
        'real_name' => 'max:25',
        'phone' => 'mobile',
	];

	protected $message  =   [
		'nick_name.max'     => '名称最多不能超过25个字符',
		'real_name.max'     => '名称最多不能超过25个字符',
        'phone.mobile'     => '手机号有误',
	];
}
